offscreen_window: Remove deprecated API calls
authorTimm Bäder <mail@baedert.org>
Mon, 20 Jul 2015 15:04:25 +0000 (17:04 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 20 Jul 2015 19:02:58 +0000 (21:02 +0200)
demos/gtk-demo/offscreen_window.c
demos/gtk-demo/offscreen_window2.c

index 433cad1b84f975861514a2563f9d03a55edb3831..38d4cccb61108c4ee7c1b7bfe9ab694046fc81d5 100644 (file)
@@ -230,7 +230,6 @@ gtk_rotated_bin_realize (GtkWidget *widget)
 {
   GtkRotatedBin *bin = GTK_ROTATED_BIN (widget);
   GtkAllocation allocation;
-  GtkStyleContext *context;
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
@@ -290,9 +289,6 @@ gtk_rotated_bin_realize (GtkWidget *widget)
   g_signal_connect (bin->offscreen_window, "from-embedder",
                     G_CALLBACK (offscreen_window_from_parent), bin);
 
-  context = gtk_widget_get_style_context (widget);
-  gtk_style_context_set_background (context, window);
-  gtk_style_context_set_background (context, bin->offscreen_window);
   gdk_window_show (bin->offscreen_window);
 }
 
index 50f77a2899a3e8b00c7d6ac8acea4a3848991c0d..f29fd9b78cfff4fd9ea990bf0f471ce716084349 100644 (file)
@@ -169,7 +169,6 @@ gtk_mirror_bin_realize (GtkWidget *widget)
 {
   GtkMirrorBin *bin = GTK_MIRROR_BIN (widget);
   GtkAllocation allocation;
-  GtkStyleContext *context;
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
@@ -229,9 +228,6 @@ gtk_mirror_bin_realize (GtkWidget *widget)
   g_signal_connect (bin->offscreen_window, "from-embedder",
                     G_CALLBACK (offscreen_window_from_parent), bin);
 
-  context = gtk_widget_get_style_context (widget);
-  gtk_style_context_set_background (context, window);
-  gtk_style_context_set_background (context, bin->offscreen_window);
   gdk_window_show (bin->offscreen_window);
 }